* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    color: #4a5568;
    font-size: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: #4299e1;
    color: white;
}

.btn-primary:hover {
    background: #3182ce;
}

.login-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.login-form input,
.login-form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.admin-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.scoring-settings {
    grid-column: 1 / -1;
}

.user-management,
.speaker-assignment {
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
}

.add-user {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-user input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.user-list ul,
.available-users ul,
.assigned-speakers ul {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.user-item {
    padding: 8px;
    margin: 5px 0;
    background: #f7fafc;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-item.speaker {
    background: #e6fffa;
    border-left: 4px solid #38b2ac;
}

.user-item.judge {
    background: #fef5e7;
    border-left: 4px solid #ed8936;
}

.assign-btn,
.remove-btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
}

.assign-btn {
    background: #48bb78;
    color: white;
}

.remove-btn {
    background: #f56565;
    color: white;
}

.scoring-settings label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
}

.scoring-settings input[type="radio"] {
    margin-right: 8px;
}

.speaker-card {
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin: 10px 0;
    border-radius: 8px;
    background: #f7fafc;
}

.score-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.score-input input {
    width: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th,
.results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.results-table th {
    background: #f7fafc;
    font-weight: bold;
}

.results-table tr:hover {
    background: #f7fafc;
}

.results-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.share-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
}

.share-url {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .admin-panel {
        grid-template-columns: 1fr;
    }

    .login-form {
        flex-direction: column;
        align-items: stretch;
    }

    .user-info {
        flex-direction: column;
        gap: 5px;
    }
}

/* 登录选择界
面样式 */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.login-option-btn {
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 8px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.login-option-btn:hover {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

/* 角色分配样式 */
.role-assignment {
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
}

.assigned-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.role-group {
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    background: #f9f9f9;
}

.role-group h4 {
    margin-bottom: 10px;
    color: #4a5568;
}

/* 数据库状态指示器 */
.db-status {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
}

.db-status.connected {
    background: #48bb78;
}

.db-status.connecting {
    background: #4299e1;
}

.db-status.error {
    background: #f56565;
}

/* 清空数据按钮 */
.danger-zone {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #fed7d7;
    border-radius: 8px;
    background: #fef5e7;
}

.danger-btn {
    background: #f56565;
    color: white;
}

.danger-btn:hover {
    background: #e53e3e;
}

/* 会话管理样式 */
.session-management {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #bee3f8;
    border-radius: 8px;
    background: #ebf8ff;
}

.session-management h3 {
    color: #2b6cb0;
    margin-bottom: 10px;
}

#currentSessionId {
    font-family: monospace;
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

/* Firebase配置提示 */
.firebase-config-notice {
    background: #fef5e7;
    border: 2px solid #f6ad55;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.firebase-config-notice h4 {
    color: #c05621;
    margin-bottom: 10px;
}

.firebase-config-notice code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

/* 实时状态指示器 */
.realtime-indicator {
    position: fixed;
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

.realtime-indicator.active {
    background: #48bb78;
}

.realtime-indicator.inactive {
    background: #a0aec0;
}

.realtime-indicator::before {
    content: "●";
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* 系统设置样式
 */
.system-settings {
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #f8f9fa;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.setting-item label {
    font-weight: bold;
    color: #4a5568;
}

.setting-item input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 班级管理样式 */
.class-management {
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #f0f9ff;
}

.class-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.current-class {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.current-class label {
    font-weight: bold;
    color: #4a5568;
    min-width: 80px;
}

.current-class select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.class-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.class-actions .btn {
    flex: 1;
    min-width: 100px;
}

.class-info {
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.class-info p {
    margin: 5px 0;
    color: #4a5568;
}

.class-info span {
    font-weight: bold;
    color: #2d3748;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

/* 快速分配样式 */
.quick-assign {
    border: 1px solid #bee3f8;
    padding: 15px;
    border-radius: 6px;
    background: #ebf8ff;
    margin-bottom: 20px;
}

.quick-assign-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-assign-buttons .btn {
    flex: 1;
    min-width: 120px;
}

/* Excel导入样式 */
.excel-import {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.excel-import .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.excel-import .btn-secondary:hover {
    background: #5a6268;
}

.excel-import .help-text {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

/* 批量添加模态框 */
.batch-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.batch-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
}

.batch-textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

/* 分享模态框增强 */
.share-content {
    max-width: 600px;
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.share-option {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-option:hover {
    border-color: #4299e1;
    background: #f7fafc;
}

.share-option.selected {
    border-color: #4299e1;
    background: #ebf8ff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .quick-assign-buttons {
        flex-direction: column;
    }

    .share-options {
        grid-template-columns: 1fr;
    }
}

/* 评选管理样式 */
.session-actions {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f8f9fa;
}

.session-actions h3 {
    color: #4a5568;
    margin-bottom: 10px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.action-buttons .btn {
    flex: 1;
    padding: 12px 20px;
    font-weight: bold;
}

/* 批量提交区域样式 */
.submit-all-section {
    margin-bottom: 20px;
}

.submit-all-section h4 {
    margin-bottom: 10px;
    color: #2b6cb0;
}

.submit-all-section .btn {
    margin-right: 10px;
}

/* 评委评分输入框样式 */
.judge-score-input {
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.judge-score-input:focus {
    border-color: #4299e1;
    outline: none;
}

.judge-score-input:invalid {
    border-color: #f56565;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .submit-all-section .btn {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
}

/* 历史记录界面样式 */
.history-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.history-summary {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.history-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.history-header h4 {
    color: #2d3748;
    margin: 0;
}

.history-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.session-id {
    font-family: monospace;
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #4a5568;
}

.session-date {
    font-size: 14px;
    color: #718096;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.stat-label {
    font-weight: bold;
    color: #4a5568;
}

.stat-value {
    color: #2d3748;
}

.history-results {
    margin-bottom: 15px;
}

.history-results h5 {
    margin-bottom: 10px;
    color: #2d3748;
}

.mini-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mini-results-table th,
.mini-results-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.mini-results-table th {
    background: #f7fafc;
    font-weight: bold;
    color: #4a5568;
}

.mini-results-table tr:hover {
    background: #f7fafc;
}

.history-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.no-history {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.no-history h3 {
    color: #4a5568;
    margin-bottom: 10px;
}

/* 详细记录模态框样式 */
.detailed-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.detailed-info p {
    margin: 5px 0;
}

.users-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.user-group {
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    background: #f8f9fa;
}

.user-group h5 {
    margin-bottom: 10px;
    color: #2d3748;
}

.user-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-group li {
    padding: 4px 0;
    color: #4a5568;
}

.detailed-result {
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.detailed-result h5 {
    margin-bottom: 8px;
    color: #2d3748;
}

.detailed-result p {
    margin: 0;
    color: #4a5568;
}

/* 评分按钮样式 */
.scoring-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .history-meta {
        align-items: flex-start;
    }

    .history-stats {
        grid-template-columns: 1fr;
    }

    .history-actions {
        flex-direction: column;
    }

    .history-controls {
        flex-direction: column;
    }

    .users-grid {
        grid-template-columns: 1fr;
    }

    .scoring-buttons {
        flex-direction: column;
    }
}

/* 进
度模态框样式 */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.progress-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 成功模态框样式 */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.success-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* 批量添加模态框增强 */
.batch-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500;
}

.batch-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.batch-textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

/* 小按钮样式 */
.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
}

/* Firebase状态指示器 */
.db-status {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    z-index: 1000;
}

.db-status.connected {
    background: #48bb78;
}

.db-status.connecting {
    background: #4299e1;
}

.db-status.error {
    background: #f56565;
}

/* 历
史记录模态框样式 */
.history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.history-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8f9fa;
}

.history-header h3 {
    margin: 0;
    color: #2d3748;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #718096;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.history-list {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
}

.history-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.history-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.session-info h4 {
    margin: 0 0 5px 0;
    color: #2d3748;
    font-size: 18px;
}

.session-date {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

.session-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-badge {
    background: #ebf8ff;
    color: #2b6cb0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.session-id {
    margin-bottom: 15px;
}

.session-id small {
    color: #718096;
    font-family: monospace;
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 3px;
}

.results-preview h5 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 16px;
}

.results-table-container {
    overflow-x: auto;
}

.mini-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mini-results-table th,
.mini-results-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.mini-results-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.mini-results-table tr:hover {
    background: #f7fafc;
}

.history-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.no-history {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.no-history-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.no-results {
    color: #718096;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* 会话详情模态框 */
.session-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2100;
}

.session-detail-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8f9fa;
}

.detail-info {
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.info-item span {
    color: #2d3748;
}

.participants-section {
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    overflow-y: auto;
    flex: 1;
}

.participants-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.participant-group h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
}

.participant-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 0;
    background: #f7fafc;
    border-radius: 6px;
    border-left: 4px solid #e2e8f0;
}

.participant-item.speaker {
    background: #e6fffa;
    border-left-color: #38b2ac;
}

.participant-item.judge {
    background: #fef5e7;
    border-left-color: #ed8936;
}

.role-badge {
    background: #e2e8f0;
    color: #4a5568;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.participant-item.speaker .role-badge {
    background: #b2f5ea;
    color: #234e52;
}

.participant-item.judge .role-badge {
    background: #fed7aa;
    color: #7c2d12;
}

.detailed-results {
    padding: 20px 30px;
}

.detailed-results h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
}

.detailed-results-table {
    width: 100%;
    border-collapse: collapse;
}

.detailed-results-table th,
.detailed-results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.detailed-results-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.final-score {
    font-weight: 600;
    color: #2b6cb0;
}

.score-details {
    font-family: monospace;
    font-size: 13px;
    color: #718096;
}

/* 分享结果模态框 */
.shared-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.shared-results-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.shared-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.shared-header h3 {
    margin: 0;
}

.shared-header .close-btn {
    color: white;
}

.shared-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.shared-info {
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8f9fa;
}

.shared-results {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
}

.shared-results h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
}

.shared-results-table {
    width: 100%;
    border-collapse: collapse;
}

.shared-results-table th,
.shared-results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.shared-results-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.rank-cell {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    width: 60px;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e2e8f0);
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #ed8936);
}

.speaker-name {
    font-weight: 600;
    color: #2d3748;
}

.shared-actions {
    padding: 20px 30px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 响应式调整 */
@media (max-width: 768px) {

    .history-content,
    .session-detail-content,
    .shared-results-content {
        width: 98%;
        max-height: 95vh;
    }

    .history-header,
    .detail-header,
    .shared-header {
        padding: 15px 20px;
    }

    .history-list,
    .participants-section,
    .shared-results {
        padding: 15px 20px;
    }

    .history-item-header {
        flex-direction: column;
        gap: 10px;
    }

    .session-stats {
        justify-content: flex-start;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .shared-actions,
    .history-actions {
        flex-direction: column;
    }
}

/* 导出格
式选择模态框 */
.export-format-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.export-format-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.export-format-content h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
}

.export-format-content p {
    margin: 0 0 25px 0;
    color: #718096;
}

.format-options {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.format-btn {
    flex: 1;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.format-btn:hover {
    border-color: #4299e1;
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.format-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.format-info h4 {
    margin: 0 0 5px 0;
    color: #2d3748;
    font-size: 16px;
}

.format-info p {
    margin: 0;
    font-size: 12px;
    color: #718096;
}

.csv-btn:hover {
    border-color: #48bb78;
}

.xlsx-btn:hover {
    border-color: #4299e1;
}

/* 分享模态框增强样式 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.share-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.share-header h3 {
    margin: 0;
}

.share-header .close-btn {
    color: white;
}

.share-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.share-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex: 1;
}

.share-body p {
    margin: 0 0 15px 0;
    color: #4a5568;
}

.url-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.share-url {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    background: #f7fafc;
}

.copy-btn {
    padding: 12px 20px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #3182ce;
}

.share-options h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
}

.share-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.share-method-btn {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
}

.share-method-btn:hover {
    border-color: #4299e1;
    background: #f7fafc;
    transform: translateY(-1px);
}

.share-info {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.share-info p {
    margin: 0;
    color: #2b6cb0;
}

/* 二维码模态框 */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2100;
}

.qr-content {
    background: white;
    border-radius: 12px;
    max-width: 350px;
    width: 90%;
}

.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8f9fa;
}

.qr-header h3 {
    margin: 0;
    color: #2d3748;
}

.qr-body {
    padding: 25px;
    text-align: center;
}

.qr-container {
    margin: 20px 0;
}

.qr-body p {
    margin: 10px 0;
    color: #4a5568;
}

/* 微信分享模态框 */
.wechat-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2100;
}

.wechat-share-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
}

.wechat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #07c160, #00d976);
    color: white;
}

.wechat-header h3 {
    margin: 0;
}

.wechat-header .close-btn {
    color: white;
}

.wechat-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wechat-body {
    padding: 25px;
}

.wechat-steps h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
}

.wechat-steps ol {
    margin: 0 0 20px 0;
    padding-left: 20px;
    color: #4a5568;
}

.wechat-steps li {
    margin: 5px 0;
}

.wechat-url {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.wechat-url-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: #f7fafc;
}

.wechat-body p {
    margin: 0;
    text-align: center;
    color: #718096;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .format-options {
        flex-direction: column;
        gap: 15px;
    }

    .share-methods {
        grid-template-columns: 1fr;
    }

    .url-container,
    .wechat-url {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }

    .export-format-content,
    .share-content,
    .qr-content,
    .wechat-share-content {
        width: 95%;
        margin: 10px;
    }

    .share-header,
    .qr-header,
    .wechat-header {
        padding: 15px 20px;
    }

    .share-body,
    .qr-body,
    .wechat-body {
        padding: 20px;
    }
}

/* 会话管理样式 */
.session-input-area {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.session-input-area h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.session-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.session-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-option input[type="radio"] {
    margin: 0;
}

.session-option label {
    cursor: pointer;
    color: #495057;
    font-weight: 500;
}

.session-id-input {
    margin-bottom: 15px;
}

.session-id-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 5px;
}

.session-id-input small {
    color: #6c757d;
    font-size: 12px;
}

.current-session-info {
    padding: 10px;
    background: #e3f2fd;
    border-radius: 4px;
    border-left: 4px solid #2196f3;
}

.current-session-info span {
    color: #1976d2;
    font-size: 14px;
}

.current-session-info strong {
    font-weight: 600;
}

/* 评分界面样式优化 */
.score-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.score-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.score-item label {
    flex: 1;
    margin: 0;
    font-weight: 500;
    color: #495057;
    min-width: 150px;
}

.score-item input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.score-item input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.total-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #e8f4fd;
    border-radius: 6px;
    border: 2px solid #4299e1;
    margin-top: 10px;
}

.total-score label {
    margin: 0;
    color: #2c5282;
    font-weight: 600;
}

.total-score-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #4299e1;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: white;
    color: #2c5282;
}

.speaker-card {
    border: 1px solid #e2e8f0;
    padding: 25px;
    margin: 15px 0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.speaker-card h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.3em;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.speaker-card .btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

.speaker-card .btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.speaker-card .btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 云
端同步设置样式 */
.sync-settings {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
}

.sync-settings h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sync-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sync-controls .setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sync-controls .setting-item label {
    font-weight: 500;
    color: #4a5568;
}

.sync-controls .setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.sync-controls .setting-item input[type="number"] {
    padding: 5px 10px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
}

.sync-status {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #4299e1;
}

.sync-status p {
    margin: 5px 0;
    color: #4a5568;
    font-size: 14px;
}

.sync-status span {
    font-weight: 600;
    color: #2d3748;
}

.btn-small {
    padding: 5px 12px;
    font-size: 13px;
}

/* 评分进度显示
样式 */
.scoring-progress {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.scoring-progress h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.progress-summary {
    margin-bottom: 20px;
}

.progress-summary p {
    margin-bottom: 10px;
    font-size: 16px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #2196f3;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.progress-details {
    margin-top: 20px;
    overflow-x: auto;
}

.progress-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.progress-table thead {
    background: #667eea;
    color: white;
}

.progress-table th,
.progress-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.progress-table th {
    font-weight: bold;
}

.progress-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.progress-table tbody tr:hover {
    background: #e3f2fd;
}

.progress-table td.scored {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: bold;
}

.progress-table td.not-scored {
    background: #fff3e0;
    color: #e65100;
}

.all-completed-notice {
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 8px;
    text-align: center;
}

.all-completed-notice p {
    margin: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}